import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n

import '@/styles/index.scss' // global css
import ECharts from 'vue-echarts'
import App from './App'
import router from './router'
import store from './store'
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
Vue.use(Avue)
import '@/icons' // icon
import '@/permission' // permission control
import mixins from '@/mixins'
Vue.use(ElementUI, { locale })
// register global mixins.
Vue.mixin(mixins)
Vue.component('v-chart', ECharts)
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
